Objects Reference

directX::clone_sound

Prototype

LPDIRECTSOUNDBUFFER clone_sound(LPDIRECTSOUNDBUFFER buf)

Parameters

Parameter Type Description
buf LPDIRECTSOUNDBUFFER destination buffer for cloned sound

Return Value

Returns the DirectX sound buffer pointer for the cloned sound.

Remarks

This function clones a sound buffer. Used for playing simultaneous instances of the same sound.